parallelization of embedded API calls